package com.xiguaji.tiktok.v1.user.repository;

import com.xiguaji.tiktok.v1.user.model.VerityCode;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface VerityCodeRepository extends CrudRepository<VerityCode,Long> {

    VerityCode findFirstByEmailAndCode(String email, String code);

    void deleteById(Long id);
}
